/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.javatrainning.thupt.b1;

import java.util.Scanner;

/**
 *
 * @author Autumn
 */
public class bai6 {
    public static String s;
    public static void main(String args[]){
        Scanner sc=new Scanner(System.in);
        for(int i=100;i<=999;i++){ 
                   s="";
                   s+=i;
                   String a=new StringBuffer(s).reverse().toString();
                   s+=a;
                   System.out.println(s);
                                 }
                                 }
}
